package com.syh.jn.scm.service.impl.operation.system;

import com.alibaba.dubbo.config.annotation.Service;
import com.syh.core.ddd.infrastructure.repository.AggregateRepository;
import com.syh.core.ddd.service.AbstractServiceImpl;
import com.syh.jn.scm.domain.operation.entity.system.LoginLog;
import com.syh.jn.scm.domain.operation.repository.system.LoginLogRepository;
import com.syh.jn.scm.dto.operation.system.loginLog.LoginLogMto;
import com.syh.jn.scm.dto.operation.system.loginLog.LoginLogSto;
import com.syh.jn.scm.dto.operation.system.loginLog.LoginLogVo;
import com.syh.jn.scm.service.api.operation.system.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class LoginLogServiceImpl extends AbstractServiceImpl<LoginLogSto, LoginLogMto, LoginLogVo,LoginLog,Long> implements LoginLogService {

	@Autowired
	private LoginLogRepository loginLogRepository;

	@Override
	protected AggregateRepository<LoginLog, Long> getAggregateRepository() {
		return this.loginLogRepository;
	}

	@Override
	public Long save(LoginLogSto loginLogSto) {
		LoginLog loginLog=new LoginLog(loginLogSto);
		return loginLogRepository.add(loginLog);
	}

	@Override
	public void update(LoginLogMto loginLogMto) {

	}

	@Override
	public void delete(Long id) {

	}
}
